﻿using UI.Base;

namespace UI.Tip
{
    public class TipPanel: BasePanel<TipPanel>
    {
        public UIButton btnSure;
        public UILabel labInfo;
        public override void Init()
        {
            btnSure.onClick.Add(new EventDelegate(() =>
            {
                HideMe();
            }));
            HideMe();
        }
        /// <summary>
        /// 改变提示面板 提示的内容
        /// </summary>
        /// <param name="info"></param>
        public void ChangeInfo(string info)
        {
            labInfo.text = info;
        }
    }
}